package pers.kw.crm.api;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pers.kw.crm.dto.UserDto;
import pers.kw.protocol.R;

import javax.validation.constraints.NotBlank;

public interface UserApi {

    @ApiOperation(value = "查询用户信息")
    @GetMapping(value = "/crm/api/user/get/{userNo}")
    R<UserDto> getUserInfo(@NotBlank(message = "userNo不能为空") @PathVariable(value = "userNo") String userNo);
}
